﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sisocana.Core.Interfaces;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Sisocana.Core.Models
{
    public abstract class PersonaModel:IPersonaModel
    {

        public int id { get; set; }
        public int idSitio { get; set; }
        public DateTime fecha { get; set; }

        [DisplayName("First Name")]
        [Required(ErrorMessage = "First name required")]
        [StringLength(100, MinimumLength = 3, ErrorMessage = "The minimum length is 3 and the maximum length is 100")]
        public string nombre { get; set; }

        [DisplayName("Last Name")]
        [Required(ErrorMessage = "Last name required")]
        [StringLength(100, MinimumLength = 3, ErrorMessage = "The minimum length is 3 and the maximum length is 100")]
        public string apellido { get; set; }
    }
}
